<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Aplikasi Administrasi Penerimaan Siswa Baru</title>
        
        <link rel="stylesheet" href="css/style_content.css" type="text/css"/>
        <link rel="stylesheet" href="css/style_table.css" type="text/css"/>
        <link type="text/css" href="css/excite-bike/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
        
        <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.8.21.custom.min.js"></script>
        <script type="text/javascript" src="js/highcharts.js"></script>
        
        <!-- untuk menu superfish -->
        <link rel="stylesheet" href="css/superfish.css" type="text/css" />
        <script type="text/javascript" src="js/superfish.js"></script>
        
        <!-- untuk mask -->
        <script type="text/javascript" src="js/jquery.maskedinput.js"></script>
        <script type="text/javascript" src="js/umum.js"></script>
        <script type="text/javascript">
            
            // Beralih menu aktif dengan modul saat ini
            function toggleActiveMenu(module) {
                
                $('#menuhome').css('background-color', '');
                $('#menuta').css('background-color', '');
                $('#menusiswa').css('background-color', '');
                $('#menutrx').css('background-color', '');
                $('#menulaporan').css('background-color', '');
                $('#menugrafik').css('background-color', '');
                $('#menuuser').css('background-color', '');
                
                if (module == 'home') {
                    $('#menuhome').css('background-color', '#F32308');
                    
                } else if (module == 'tahunajaran') {
                    $('#menuta').css('background-color', '#F32308');
                    
                } else if (module == 'siswa') {
                    $('#menusiswa').css('background-color', '#F32308');
                    
                } else if (module == 'simpanan') {
                    $('#menutrx').css('background-color', '#F32308');
                    $('#menutrxspp').css('background-color', '#F32308');
                    
                } else if (module == 'laporan') {
                    $('#menulaporan').css('background-color', '#F32308');
                    $('#menulapsiswa').css('background-color', '#F32308');
                    
                } else if (module == 'lapperlengkapan') {
                    $('#menulaporan').css('background-color', '#F32308');
                    $('#menulapper').css('background-color', '#F32308');
                    
                } else if (module == 'lapspp') {
                    $('#menulaporan').css('background-color', '#F32308');
                    $('#menulapspp').css('background-color', '#F32308');
                    
                } else if (module == 'grafik') {
                    $('#menugrafik').css('background-color', '#F32308');
                    
                } else if (module == 'manageuser') {
                    $('#menuuser').css('background-color', '#F32308');
                    $('#menumanageuser').css('background-color', '#F32308');
                    
                } else if (module == 'gantipassword') {
                    $('#menuuser').css('background-color', '#F32308');
                    $('#menugantipassword').css('background-color', '#F32308');
                    
                }
            }
            
            $(document).ready(function(){
                $('ul.sf-menu').superfish();
                
                // Dapatkan parameter di url untuk mendapatkan modul saat ini
                var params = location.search.split('&');
                var module = params[0].split('=')[1];
                toggleActiveMenu(module);
            });
        </script>

    </head>
    <body>
        <div class="box">
            <div class="border">
                <div class="style">
                    <div class="header">
                        <span class="title">
                            <div align="center">
                                <img src="images/header.jpg" width="840" height="120" />
                            </div>
                        </span>
                    </div>
                    <div class="menu">
                        <?php include 'menu.php'; ?>
                    </div>
                    <!--awal content -->
                    <div class="content">
                        <?php include 'content.php'; ?>
                    </div>
                    <!--akhir content -->
                    <div class="footer" align="center">
                        <p>Copyright &copy; LPMA Mentari Bangkit </p>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>